home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act6a / 00839.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  511 b   |  23 lines

  1. on talkinghead sndname
  2.   if the number of cast sndname < 1 then
  3.     exit
  4.   end if
  5.   if the mouseDown then
  6.     exit
  7.   end if
  8.   if the castType of cast sndname = #sound then
  9.     set ring to the number of cast "head1" - 1
  10.     puppetSound(sndname)
  11.     set ptime to the timer
  12.     set dtime to 0
  13.     set futtime to 20 + ptime + (the size of cast sndname / 183)
  14.     repeat while the timer < futtime
  15.       if the mouseDown then
  16.         exit
  17.       end if
  18.       updateStage()
  19.     end repeat
  20.   end if
  21.   puppetSound(0)
  22. end
  23.